package com.iwhalecloud.bss.kite.cucc.common.validate.annotation;

import com.iwhalecloud.bss.kite.cucc.common.validate.validator.KiteDateTimeValidator;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({
    ElementType.PARAMETER, ElementType.FIELD
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface KiteDateTime {

    /**
     * 要注意选取合适的 国际化编码<
     * 
     * @return
     */
    String value() default "BSS_KITE_COMMON_41510";

    String format() default "yyyyMMdd";

    /**
     * ErrorValidator 异常校验器
     * <li>默认是 KiteNotNullValidator.class</li>
     */
    final KiteDateTimeValidator VALIDATOR = new KiteDateTimeValidator();
}
